<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>IVPlayerDelegate Protocol Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">IoTVideo </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">tencentcs</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/player:didEndOfFile:error:">- player:didEndOfFile:error:</option>
		
		<option value="//api/name/player:didFinishPlaybackFile:">- player:didFinishPlaybackFile:</option>
		
		<option value="//api/name/player:didReceiveAVHeader:">- player:didReceiveAVHeader:</option>
		
		<option value="//api/name/player:didReceiveError:">- player:didReceiveError:</option>
		
		<option value="//api/name/player:didUpdateAudience:">- player:didUpdateAudience:</option>
		
		<option value="//api/name/player:didUpdatePTS:">- player:didUpdatePTS:</option>
		
		<option value="//api/name/player:didUpdateStatus:">- player:didUpdateStatus:</option>
		
		<option value="//api/name/player:didUpdateTalkerNum:">- player:didUpdateTalkerNum:</option>
		
		<option value="//api/name/player:didUpdateViewerNum:">- player:didUpdateViewerNum:</option>
		
		<option value="//api/name/player:willBeginOfFile:">- player:willBeginOfFile:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">IVPlayerDelegate Protocol Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Conforms to</th>
	<td><a href="../Protocols/IVConnectionDelegate.html">IVConnectionDelegate</a></td>
</tr><tr>
	<th>Declared in</th>
	<td>IVPlayer.h</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>播放器代理</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/player:didUpdateStatus:" title="player:didUpdateStatus:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didUpdateStatus:">&ndash;&nbsp;player:didUpdateStatus:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>播放器状态回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didUpdateStatus:(IVPlayerStatus)<em>status</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>status</code></th>
						<td><p>状态值</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didUpdatePTS:" title="player:didUpdatePTS:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didUpdatePTS:">&ndash;&nbsp;player:didUpdatePTS:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>播放时间回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didUpdatePTS:(NSTimeInterval)<em>PTS</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>PTS</code></th>
						<td><p>时间戳</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:willBeginOfFile:" title="player:willBeginOfFile:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:willBeginOfFile:">&ndash;&nbsp;player:willBeginOfFile:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>SD卡回放文件即将播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> willBeginOfFile:(NSTimeInterval)<em>fileTime</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fileTime</code></th>
						<td><p>即将播放的文件（文件开始时间）</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didEndOfFile:error:" title="player:didEndOfFile:error:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didEndOfFile:error:">&ndash;&nbsp;player:didEndOfFile:error:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>SD卡回放文件播放结束</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didEndOfFile:(NSTimeInterval)<em>fileTime</em> error:(nullable NSError *)<em>error</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>fileTime</code></th>
						<td><p>即将播放的文件（文件开始时间）</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>nil：正常完成， 非nil：播放错误</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didUpdateViewerNum:" title="player:didUpdateViewerNum:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didUpdateViewerNum:">&ndash;&nbsp;player:didUpdateViewerNum:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>观看人数变更</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didUpdateViewerNum:(NSInteger)<em>viewerNum</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>viewerNum</code></th>
						<td><p>观看人数</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didUpdateTalkerNum:" title="player:didUpdateTalkerNum:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didUpdateTalkerNum:">&ndash;&nbsp;player:didUpdateTalkerNum:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>对讲人数变更</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didUpdateTalkerNum:(NSInteger)<em>talkerNum</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>talkerNum</code></th>
						<td><p>与当前设备对讲的人数</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didReceiveError:" title="player:didReceiveError:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didReceiveError:">&ndash;&nbsp;player:didReceiveError:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>播放错误回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didReceiveError:(NSError *)<em>error</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>错误实例, 见 @c <a href="../Constants/IVPlayerError.html"><code>IVPlayerError</code></a></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didReceiveAVHeader:" title="player:didReceiveAVHeader:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didReceiveAVHeader:">&ndash;&nbsp;player:didReceiveAVHeader:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>音视频头信息回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didReceiveAVHeader:(IVAVHeader)<em>avHeader</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>avHeader</code></th>
						<td><p>音视频头信息</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didFinishPlaybackFile:" title="player:didFinishPlaybackFile:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didFinishPlaybackFile:">&ndash;&nbsp;player:didFinishPlaybackFile:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>SD卡回放文件播放结束 (<b class="deprecated">Deprecated:</b><span class="deprecated"> Use <code>-player:didEndOfFile:error:</code> instead</span>)</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didFinishPlaybackFile:(NSTimeInterval)<em>startTime</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>startTime</code></th>
						<td><p>当前播放结束的文件的开始时间</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/player:didUpdateAudience:" title="player:didUpdateAudience:"></a>
	<h3 class="method-title"><code><a href="#//api/name/player:didUpdateAudience:">&ndash;&nbsp;player:didUpdateAudience:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>观众人数变更 (<b class="deprecated">Deprecated:</b><span class="deprecated"> Use <code>-player:didUpdateViewerNum:</code> instead</span>)</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)player:(IVPlayer *)<em>player</em> didUpdateAudience:(NSInteger)<em>audience</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>player</code></th>
						<td><p>播放器实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>audience</code></th>
						<td><p>观众人数</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVPlayer.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2021 tencentcs. All rights reserved. Updated: 2021-07-22</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>